<?php
//print_r($_SESSION);
?>
<div id='panel'>
<div class="fulldiv" style="width:700px;">
 <strong class="orangehead">My Swapen</strong>
 <p style="color:gray;">All your sold, selling, bought, buying amd other things need attentionwill be shown here.</p>



<form name="form_his" id="form_his" method="post">
<table width="98%"  border="0" cellspacing="0" class="container" style=" border-width: 0; border:none;">
  <tr>
    <td>
	<div class="fulldiv">
	   <?php
	   $myper_merc = $mypg_msg = $mypg_help = '';
	   if(isset($_GET['mySwapen']))
	   {
	    $myper_merc = 'class="current"';
	   }
	   else if(isset($_GET['inbox'])) {
	    $mypg_msg = 'class="current"';
	   }
	   else {
	    $mypg_help = 'class="current"';
	   }
	   ?>  
	   <div class="mypg_merc" ><a href="index.php?mySwapen" <?php echo $myper_merc; ?>></a></div>
	   <div class="mypg_msg" ><a href="index.php?inbox" <?php echo $mypg_msg; ?>></a></div>
	   <div class="mypg_help" ><a href="index.php?faq" <?php echo $mypg_help; ?>></a></div>
	   <div class="bluesml_out" id='m_all' style="margin:5px 0px;">Minimize All<br />
		   <div class="bluearrowsml" onclick="minimize_all('merchant')" id="big_blue_arrow">&nbsp;</div>
	   </div>
	</div>
	</td>
  </tr>
  <tr>
    <td>
    <?php
       if(!isset($_GET['inbox']))
       {
    ?>
		<div class="fulldiv">
			<div class="mypg_searchtxt">
			 Search Wholesaler Products
			</div>
			<form action="index.php" name="form1" method="post"> 
			<div class="mypg_inputout">
			      
				<input name="key" type="text" id="key" style="width: 290px;" class="inputbg" value="<?php 
				if(!empty($_GET['key']))
				 echo $_GET['key']; ?>" size="10" />
				<!--<input type="text" style="width: 290px;" class="inputbg" value="" id="key" name="key">-->
			</div>
			<div class="mypg_search_out">
			  <input type="hidden" name="srchwhole" value="1" />
				<input type="hidden" name="sg2" id="sg2" value="wholeseller">
			  <input type="submit" id="searchBtn" class="refer_btn"  name="btnSrch" value="Search" style="margin:0px;">
			</div>
			</form>
			<p style="text-align:center; width:100%; float:left; color:gray;">
			<font style="margin:0px 0px 0px 45px;">*Only merchants have access to this search</font>
			</p>
		</div>
     <?php
       }
     ?>
	</td>
 </tr>

</table>
</form>

</div>

</div>